﻿<Window x:Class="NthDownload.Views.ShellView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid Name="RootElement">
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <ContentControl x:Name="ActiveItem" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />

        <Border Background="#80808080" Visibility="{Binding HasDialogs, Converter={StaticResource BooleanToVisiblityTrueVisible}}"
                KeyboardNavigation.TabNavigation="Cycle" KeyboardNavigation.DirectionalNavigation="Cycle">
            <Border Background="White" VerticalAlignment="{Binding DialogVerticalAlignment}" Padding="0,20,0,20"
                    Width="{Binding Width, ElementName=RootElement}">
                <ContentControl x:Name="DialogItem" IsTabStop="False"
                                HorizontalAlignment="{Binding Content.HorizontalAlignment, RelativeSource={RelativeSource Self}}" 
                                VerticalAlignment="{Binding Content.VerticalAlignment, RelativeSource={RelativeSource Self}}" />
            </Border>
        </Border>
    </Grid>
</Window>
